import Diect from './diect'
import Position from './position'
import SchedulePrice from './schedulePrice'
import Market from './market'
import Creativor from './creativite'
import Component from './component'
import LoadPage from './loadPage'
import Base from './base'
import { getRealAdvName } from './helper'


class Adv extends Base {


  auth: {
    mode: 'CREATE_ADV' | 'CREATE_CREATIVE'
  } = {
      mode: 'CREATE_ADV'
    }

  creativeInfo: any = {};

  id: string = ''
  adgroupId: string = '';
  batchId: string = '';
  // 广告名称
  adgroupName: string = '';

  // tx广告id
  outAdgroupId: string = '';
  productLib = {
    onDefaultAction: Date.now()
  }

  // 定向
  diect: Diect = new Diect({})
  // 版块
  position: Position = new Position({})
  // 排期与出价
  schedulePrice: SchedulePrice = new SchedulePrice({})
  // 营销内容
  market: Market = new Market({})
  // 创意
  creativor: Creativor = new Creativor({})
  loadPage: LoadPage = new LoadPage({})
  marketComponents: any = {};

  get isOnlyWxChannels() {
    return this.position.isWechatChannels || this.market.isWxChannelsLive;
  }





}

export default Adv
